import request from '@/utils/request'
import defaultSettings from '@/settings'

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.authorityApp}/s/favouriteMenu/list`,
  delUrl: `${defaultSettings.ctx.authorityApp}/s/favouriteMenu/remove`,
  searchMenu: `${defaultSettings.ctx.authorityApp}/s/menuInfo/menuInfoListByMenuType2`,
}

// 删除常用菜单
export function delMenu(data) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/favouriteMenu/remove?menuId=${data}`,
    method: 'post'
  })
}
// 新增常用菜单
export function addMenu(data) {
  return request({
    url: `${defaultSettings.ctx.authorityApp}/s/favouriteMenu/add?menuId=${data}`,
    method: 'post'
  })
}

